package com.horsen.service.edu.model.BO;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.util.Date;

/**
 * 讲师导出BO
 *
 * @author Horsen
 */
@Data
@ApiModel("讲师导出BO")
@ContentRowHeight(15)
@HeadRowHeight(20)
public class TeacherOutputBO {
    @ColumnWidth(20)
    @ExcelProperty("讲师姓名")
    private String name;

    @ColumnWidth(40)
    @ExcelProperty("讲师资历")
    private String career;

    @ColumnWidth(40)
    @ExcelProperty("授课风格")
    private String style;

    @ColumnWidth(20)
    @ExcelProperty("讲师头衔")
    private Integer level;

    @ColumnWidth(30)
    @ExcelProperty("讲师头像")
    private String avatar;

    @ColumnWidth(20)
    @ExcelProperty("入驻时间")
    @DateTimeFormat("yyyy年MM月dd日")
    @JsonFormat(pattern = "yyyy.MM.dd")
    private Date joinDate;
}
